<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/chuanyueDetails.css">
    <link rel="stylesheet" href="css/reset.css">
</head>

<body>
    <footer>
        <div class="picture">
            <img src="img/1/1.1.png" alt="">
        </div>

        <ul class="list">
            <li>网站首页</li>
            <li>传悦资源</li>
            <li class="color">传悦案例</li>
            <li>传悦服务</li>
            <li>解决方案</li>
            <li>需求提交</li>
        </ul>
        <div class="concat">
            <img src="img/1/1.2.png" alt="">
        </div>
    </footer>
    <!-- 内容 -->
    <div class="content">
        <div class="con">
            <h2 class="z-title">
                AERMOST极尚网站设计
            </h2>
            <p class="text">

            </p>
            <img src="img/2/2.png" alt="" class="big-p">
            <div class="content-con">


            </div>
            <div class="sub">
                <span>上一个：开门红商城基础营销</span>
                <span>下一个：金数据全网整合营销</span>
            </div>

        </div>
    </div>
    <!-- 底部 -->
    <div class="bottom">
        <img src="img/2/1.1.png" alt="" class="b-p">
        <ul class="b-font">
            <li>关于传说</li>
            <li>新闻动态</li>
            <li>传悦观点</li>
            <li>联系传悦</li>
            <li>加入传悦</li>
            <li>付款账号</li>
        </ul>
        <p class="b-list">Copyright C2013创萝网络科技有限责任公司Ⅱ传悦Chnyoo.cn All Rights Reserved京IOP备12005221号</p>
    </div>
    <script src="jquery.min.js"></script>
    <script>
        String.prototype.parseUrl = function() {
            let arr = this.slice(this.indexOf("?") + 1).split("&");
            let result = {}
            arr.forEach(item => {
                let key = item.split("=")[0];
                let value = item.split("=")[1];
                result[key] = value;
            })
            return result;
        }
        $.ajax({
            url: "http://127.0.0.1:83/getnews",
            data: {
                id: location.href.parseUrl().id
            },
            success(data) {
                $(".text").html(data.auxiliaryTitle)
                $(".content-con").html(data.content);
            }
        })
    </script>
</body>

</html>